package com.example.pm.ending.server.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 职务表
 * @author 范佳阳
 */
@Data
public class EmpJobUpdateDTO implements Serializable {
    /**
     * 职务id
     */
    @ApiModelProperty(value = "职务id", required = true, example = "职务id")
    @NotNull(message = "修改职务失败，必须提交职务id！")
    private Long id;
    /**
     * 职务名称
     */
    @ApiModelProperty(value = "职务名称", required = true, example = "物业的职务")
    @NotNull(message = "修改职务失败，必须提交职务名称！")
    private String name;
    /**
     * 职务名称
     */
    @ApiModelProperty(value = "职务描述", required = true, example = "职务描述")
    @NotNull(message = "修改职务失败，必须提交职务描述！")
    private String description;
    /**
     * 发薪日
     */
    @ApiModelProperty(value = "发薪日", required = true, example = "发薪日")
    @NotNull(message = "修改职务失败，必须提交发薪日！ ")
    private LocalDateTime payday;


}
